//
//  SDDeviceManager.h
//  SinoDetection
//
//  Created by DCN1266 on 2022/4/15.
//

#import <Foundation/Foundation.h>
#import "SDDeviceModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface SDDeviceManager : NSObject

/// 构造设备管理单例对象
/// @return 设备管理单例对象
+ (instancetype)sharedDeviceManager;
#pragma mark - Handle Supported Devices
/// 支持的设备数组
@property (nonatomic, strong, readonly) NSArray<SDDeviceModel *> *supportedDevices;
/// 构造设备
/// @param productCode 产品编码
/// @param deviceName 设备名称
/// @param bluetoothPrefixName 设备标识名称，如“BDE_WEIXIN_TTM”
/// @param machineCode 机器码
/// @param mac 设备mac地址 例如 "CO0000005EDD"
/// @param sn 设备标识符
/// @param dataProtocolCode 协议类型
/// @param image 设备图片地址
/// @param uuid uuid不知道可以填mac,不能为空字符串
/// @return SDDeviceModel 设备对象
- (SDDeviceModel*)createDeviceModelWithProductCode: (NSString *) productCode
                                        deviceName: (NSString *) deviceName
                               bluetoothPrefixName: (NSString *) bluetoothPrefixName
                                       machineCode: (NSString *) machineCode
                                               mac: (NSString *) mac
                                                sn: (NSString *) sn
                                  dataProtocolCode: (NSString *) dataProtocolCode
                                             image: (NSString *) image
                                              uuid: (NSString *) uuid;


@end

NS_ASSUME_NONNULL_END
